//专家活跃
define(function () {
    var chart3 = {};
    chart3.option = {
        color: ['#3398DB'],
        title: {},
        tooltip: {
            trigger: 'axis',
            axisPointer: {
                type: 'shadow'
            }
        },
        grid: {
            left: '3%',
            right: '10%',
            bottom: '3%',
            top:'5%',
            containLabel: true
        },
        xAxis: [
            {
                name: '活跃度',
                type: 'value',
                boundaryGap: [0, 0.01]
            },
           
        ],
        yAxis: [
            {
                type: 'category',
                data: ['赵专家', '钱专家', '孙专家', '李专家', '周专家', '吴专家', '郑专家', '王专家']
            },
        ],
        series: [
            {
                name: '活跃度：',
                type: 'bar',
                data: [90, 94, 101, 128, 131, 132, 168, 182],
                barMaxWidth:10,
                label: {
                    normal: {
                        show: true,
                        color:'#fff',
                        textBorderColor: '#333',
                        textBorderWidth: 2,
                        position:'right',
                    }
                }
            },
        ]
    };
    chart3.queryData = function (Chart) {
        //绑定事件
        chart3.bindEvent(Chart);
        console.log('开始请求数据')
        // 写入数据
        Chart.setOption(this.option);
    }
    chart3.bindEvent = function (Chart) {
        Chart.on('click', function (params) {
            $doc.trigger("spa:navigate", {
                hash: "professor"
            })
        })
        
    }
    return chart3;
})